package gba.dnp.graphics;

import java.awt.Dimension;

import javax.swing.JFrame;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ViewModel model = new ViewModel();
		model.setPosition(new Vector2D(100, 100));
		DrawArea area = new DrawArea(model);
		area.setPreferredSize(new Dimension(600, 600));
		ViewController controller = new ViewController(model, area);
		
		JFrame frame = new JFrame();
		frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		frame.getContentPane().add(area);
		frame.pack();
		frame.setVisible(true);
		System.out.println("1");
		Thread tC = new Thread(controller);
		tC.setDaemon(true);
		tC.start();
	}

}
